package com.example.demoddd.application.dto;

import lombok.Getter;
import lombok.Setter;


@Setter
@Getter
public class Results<T> {

    private int code;

    private String msg;

    private T data;


    public static <T> Results res(int code, String msg, T data) {
        Results<T> results = new Results<T>();
        results.setCode(code);
        results.setMsg(msg);
        results.setData(data);
        return results;
    }

}
